<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>   
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'importTeacher.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="css/common.css">
	

  </head>
  
  <body>
  <div id="main">
  <fieldset>
  	<legend>
  		查询课程类别信息
  	</legend>
  		<form name="searchform" action="searchcoursetypes.action" method="post">
  			<input type="hidden" name="currentpage" id="currentpage" value="${currentpage }"/>
  			<input type="hidden" name="pageresult" id="pageresult" value="${pageresult }"/>
  			<input type="hidden" name="pagecount" id="pagecount" value="${pagecount }"/>
  			<input type="hidden" name="resultcount" id="resultcount" value="${resultcount }"/>
  			<input type="hidden" name="actiontype" id="actiontype" value="${actiontype }"/>
  			<input type="hidden" name="actionname" id="actionname" value="${actionname }"/>
	  		<table>
	  			<tr>
	  				<td class="searchTd">课程类别</td><td class="searchTd"><input type="text" name="coursetype" id="coursetype" value="${coursetype}"/></td>
	  				<td class="searchTd"><input type="submit" value="搜索" class="button" onclick="qingkong()"/></td>
	  			</tr>
	  		</table>
	  	</form>
  </fieldset>
  <fieldset>
  	<legend>
  		课程类别信息
  	</legend>
  	<table>
  		<tr>
  			<td colspan="8"><font color=""><a href="admin/info/importCoursetype.jsp">导入</a></font></td>
  		</tr>
  		<tr class="trTitle">
  			<td>课程类别</td>
  		</tr>
  		<%
  		int i=1;
  		 %>
	   	<s:iterator value="coursetypes" id="coursetype"> 
	   	<tr <%if(i%2==0) out.print("class='trstyle1'"); else out.print("class='trstyle2'");%>>
			<td><s:property id="coursetype" value="coursetype" /></td>
		</tr>
		<%
		i++;
		 %>
		</s:iterator> 
	</table>
	
	<%@include file="/util/page.jsp"%>
  </fieldset>
  </div>
 
  </body>
</html>